/*
    Copyright (c) 2012 Denis Mingulov.

    This file is part of Drop Cache.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <meegotouch/MApplication>
#include <meegotouch/MApplicationWindow>
#include <meegotouch/MLocale>

#include "mainpage.h"

#include <QtDebug>
#include <QtCore/QDir>

namespace Constants
{
    static const QLatin1String AppName("Drop Cache");
    static const QLatin1String OrgName("Denis Mingulov");
    static const QLatin1String OrgDomain("mingulov.com");
}

int main(int argc, char **argv)
{
    MApplication app(argc, argv);
    //MApplication::setPrestartMode(M::LazyShutdown);

    app.setOrganizationName(Constants::OrgName);
    app.setOrganizationDomain(Constants::OrgDomain);
    app.setApplicationName(Constants::AppName);

/*    MLocale locale;
    locale.installTrCatalog(QLatin1String("music"));
    locale.installTrCatalog(QLatin1String("accountssso"));
    MLocale::setDefault(locale);
*/
    MApplicationWindow window;

    MainPage mainPage;
    mainPage.appear(&window);
    window.show();

    return app.exec();
}
